<template>
  <view class="goods-box">
    <view class="goods-left">
		<view
			v-for="(item, index) in tabList"
			:key="index"
		>
			<view class="text" :class="[active === index ? 'active' : '']" @click="select(item, index)">
				{{item.name}}
			</view>
		</view>
	</view>
	<view class="goods-content">
		<view class="category-list">
			<view class="category-item" v-for="(item, index) in goodsList" :key="index">
				<view class="item-image">
					<image class="image" :src="item.image.preview_url"></image>
				</view>
				<view class="item-name">
					<text>{{item.name}}</text>
				</view>
			</view>
		</view>
	</view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
		active: 0,
        tabList: [
			{
				"category_id": 10001,
				"name": "手机数码",
				"parent_id": 0,
				"image_id": 10185,
				"status": 1,
				"sort": 50,
				"children": [
					{
						"category_id": 10010,
						"name": "小米",
						"parent_id": 10001,
						"image_id": 10001,
						"status": 1,
						"sort": 90,
						"image": {
							"file_id": 10001,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/201807171021031720f9679.png",
							"external_url": "https://static.yoshop.xany6.com/201807171021031720f9679.png"
						}
					},
					{
						"category_id": 10011,
						"name": "华为",
						"parent_id": 10001,
						"image_id": 10002,
						"status": 1,
						"sort": 92,
						"image": {
							"file_id": 10002,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717102129b4e214214.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717102129b4e214214.jpg"
						}
					},
					{
						"category_id": 10013,
						"name": "VIVO",
						"parent_id": 10001,
						"image_id": 10004,
						"status": 1,
						"sort": 94,
						"image": {
							"file_id": 10004,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717103633c69c94138.png",
							"external_url": "https://static.yoshop.xany6.com/20180717103633c69c94138.png"
						}
					},
					{
						"category_id": 10012,
						"name": "iphone",
						"parent_id": 10001,
						"image_id": 10003,
						"status": 1,
						"sort": 96,
						"image": {
							"file_id": 10003,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717103600edf9f5038.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717103600edf9f5038.jpg"
						}
					},
					{
						"category_id": 10016,
						"name": "三星",
						"parent_id": 10001,
						"image_id": 10007,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10007,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717103817b50602761.png",
							"external_url": "https://static.yoshop.xany6.com/20180717103817b50602761.png"
						}
					},
					{
						"category_id": 10015,
						"name": "魅族",
						"parent_id": 10001,
						"image_id": 10006,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10006,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/201807171037574f1163513.jpg",
							"external_url": "https://static.yoshop.xany6.com/201807171037574f1163513.jpg"
						}
					},
					{
						"category_id": 10014,
						"name": "OPPO",
						"parent_id": 10001,
						"image_id": 10005,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10005,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/2018071710372269a633020.png",
							"external_url": "https://static.yoshop.xany6.com/2018071710372269a633020.png"
						}
					},
					{
						"category_id": 10017,
						"name": "女性手机",
						"parent_id": 10001,
						"image_id": 10008,
						"status": 1,
						"sort": 105,
						"image": {
							"file_id": 10008,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717103858579b29364.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717103858579b29364.jpg"
						}
					}
				],
				"image": {
					"file_id": 10185,
					"file_type": 10,
					"preview_url": "https://static.yoshop.xany6.com/201809281707400fb788198.png",
					"external_url": "https://static.yoshop.xany6.com/201809281707400fb788198.png"
				}
			},
			{
				"category_id": 10002,
				"name": "家用电器",
				"parent_id": 0,
				"image_id": 0,
				"status": 1,
				"sort": 55,
				"children": [
					{
						"category_id": 10025,
						"name": "多用途锅",
						"parent_id": 10002,
						"image_id": 10016,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10016,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717104810f958a9886.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717104810f958a9886.jpg"
						}
					},
					{
						"category_id": 10024,
						"name": "豆浆机",
						"parent_id": 10002,
						"image_id": 10015,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10015,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717104753612ab0376.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717104753612ab0376.jpg"
						}
					},
					{
						"category_id": 10023,
						"name": "电饼铛",
						"parent_id": 10002,
						"image_id": 10014,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10014,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/2018071710472279ea01034.jpg",
							"external_url": "https://static.yoshop.xany6.com/2018071710472279ea01034.jpg"
						}
					},
					{
						"category_id": 10022,
						"name": "微波炉",
						"parent_id": 10002,
						"image_id": 10013,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10013,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/201807171046566fa078397.jpg",
							"external_url": "https://static.yoshop.xany6.com/201807171046566fa078397.jpg"
						}
					},
					{
						"category_id": 10021,
						"name": "电磁炉",
						"parent_id": 10002,
						"image_id": 10012,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10012,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/2018071710463313a4c6481.jpg",
							"external_url": "https://static.yoshop.xany6.com/2018071710463313a4c6481.jpg"
						}
					},
					{
						"category_id": 10020,
						"name": "电饭煲",
						"parent_id": 10002,
						"image_id": 10011,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10011,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717104603be4eb3302.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717104603be4eb3302.jpg"
						}
					},
					{
						"category_id": 10019,
						"name": "电压力锅",
						"parent_id": 10002,
						"image_id": 10010,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10010,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717104545203c11990.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717104545203c11990.jpg"
						}
					},
					{
						"category_id": 10018,
						"name": "电水壶",
						"parent_id": 10002,
						"image_id": 10009,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10009,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717104516f15c71914.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717104516f15c71914.jpg"
						}
					}
				],
				"image": null
			},
			{
				"category_id": 10003,
				"name": "电脑办公",
				"parent_id": 0,
				"image_id": 0,
				"status": 1,
				"sort": 60,
				"children": [
					{
						"category_id": 10027,
						"name": "游戏本",
						"parent_id": 10003,
						"image_id": 10018,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10018,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717105805e81ec0398.png",
							"external_url": "https://static.yoshop.xany6.com/20180717105805e81ec0398.png"
						}
					},
					{
						"category_id": 10026,
						"name": "轻薄本",
						"parent_id": 10003,
						"image_id": 10017,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10017,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717105744dd1269197.png",
							"external_url": "https://static.yoshop.xany6.com/20180717105744dd1269197.png"
						}
					},
					{
						"category_id": 10028,
						"name": "机械键盘",
						"parent_id": 10003,
						"image_id": 10019,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10019,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/2018071710582753f808887.jpg",
							"external_url": "https://static.yoshop.xany6.com/2018071710582753f808887.jpg"
						}
					},
					{
						"category_id": 10029,
						"name": "组装电脑",
						"parent_id": 10003,
						"image_id": 10020,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10020,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/2018071710585094a2e1515.jpg",
							"external_url": "https://static.yoshop.xany6.com/2018071710585094a2e1515.jpg"
						}
					},
					{
						"category_id": 10030,
						"name": "移动硬盘",
						"parent_id": 10003,
						"image_id": 10021,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10021,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/201807171059225fe4a0683.jpg",
							"external_url": "https://static.yoshop.xany6.com/201807171059225fe4a0683.jpg"
						}
					},
					{
						"category_id": 10031,
						"name": "显卡",
						"parent_id": 10003,
						"image_id": 10022,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10022,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/201807171059459e20d6548.jpg",
							"external_url": "https://static.yoshop.xany6.com/201807171059459e20d6548.jpg"
						}
					},
					{
						"category_id": 10032,
						"name": "游戏台式机",
						"parent_id": 10003,
						"image_id": 10023,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10023,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/201807171100132e1e65488.jpg",
							"external_url": "https://static.yoshop.xany6.com/201807171100132e1e65488.jpg"
						}
					},
					{
						"category_id": 10033,
						"name": "家用打印机",
						"parent_id": 10003,
						"image_id": 10024,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10024,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717110113a228e2926.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717110113a228e2926.jpg"
						}
					},
					{
						"category_id": 10034,
						"name": "吃鸡装备",
						"parent_id": 10003,
						"image_id": 10025,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10025,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717110155a2c675940.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717110155a2c675940.jpg"
						}
					}
				],
				"image": null
			},
			{
				"category_id": 10004,
				"name": "汽车用品",
				"parent_id": 0,
				"image_id": 0,
				"status": 1,
				"sort": 65,
				"children": [
					{
						"category_id": 10044,
						"name": "挂件",
						"parent_id": 10004,
						"image_id": 10034,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10034,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/201807171112441551b5825.jpg",
							"external_url": "https://static.yoshop.xany6.com/201807171112441551b5825.jpg"
						}
					},
					{
						"category_id": 10043,
						"name": "功能小件",
						"parent_id": 10004,
						"image_id": 10033,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10033,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717111229ee1cc6809.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717111229ee1cc6809.jpg"
						}
					},
					{
						"category_id": 10042,
						"name": "香水",
						"parent_id": 10004,
						"image_id": 10032,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10032,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717111203b9dfd9346.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717111203b9dfd9346.jpg"
						}
					},
					{
						"category_id": 10041,
						"name": "应急救援",
						"parent_id": 10004,
						"image_id": 10031,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10031,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717111146d51048663.png",
							"external_url": "https://static.yoshop.xany6.com/20180717111146d51048663.png"
						}
					},
					{
						"category_id": 10040,
						"name": "轮胎",
						"parent_id": 10004,
						"image_id": 10030,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10030,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717111127823353846.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717111127823353846.jpg"
						}
					},
					{
						"category_id": 10039,
						"name": "行车记录仪",
						"parent_id": 10004,
						"image_id": 10029,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10029,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717111109f7fa08380.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717111109f7fa08380.jpg"
						}
					},
					{
						"category_id": 10038,
						"name": "洗车水枪",
						"parent_id": 10004,
						"image_id": 10028,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10028,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717111051000d82311.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717111051000d82311.jpg"
						}
					},
					{
						"category_id": 10037,
						"name": "汽车坐垫",
						"parent_id": 10004,
						"image_id": 10027,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10027,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717111022b868d7975.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717111022b868d7975.jpg"
						}
					},
					{
						"category_id": 10036,
						"name": "机油",
						"parent_id": 10004,
						"image_id": 10026,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10026,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717111006b08a71831.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717111006b08a71831.jpg"
						}
					}
				],
				"image": null
			},
			{
				"category_id": 10005,
				"name": "男装",
				"parent_id": 0,
				"image_id": 0,
				"status": 1,
				"sort": 70,
				"children": [
					{
						"category_id": 10053,
						"name": "自营男装",
						"parent_id": 10005,
						"image_id": 10043,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10043,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717112108ae6848513.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717112108ae6848513.jpg"
						}
					},
					{
						"category_id": 10052,
						"name": "休闲裤",
						"parent_id": 10005,
						"image_id": 10042,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10042,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717112056240332466.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717112056240332466.jpg"
						}
					},
					{
						"category_id": 10051,
						"name": "牛仔裤",
						"parent_id": 10005,
						"image_id": 10041,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10041,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717112041f0b904756.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717112041f0b904756.jpg"
						}
					},
					{
						"category_id": 10050,
						"name": "风衣",
						"parent_id": 10005,
						"image_id": 10040,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10040,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/201807171120302592a7226.jpg",
							"external_url": "https://static.yoshop.xany6.com/201807171120302592a7226.jpg"
						}
					},
					{
						"category_id": 10049,
						"name": "卫衣",
						"parent_id": 10005,
						"image_id": 10039,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10039,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717112017badbf2419.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717112017badbf2419.jpg"
						}
					},
					{
						"category_id": 10048,
						"name": "衬衫",
						"parent_id": 10005,
						"image_id": 10038,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10038,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717112003e256b0783.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717112003e256b0783.jpg"
						}
					},
					{
						"category_id": 10047,
						"name": " 针织衫",
						"parent_id": 10005,
						"image_id": 10037,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10037,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717111947621281997.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717111947621281997.jpg"
						}
					},
					{
						"category_id": 10046,
						"name": "T恤",
						"parent_id": 10005,
						"image_id": 10036,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10036,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717111934843975679.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717111934843975679.jpg"
						}
					},
					{
						"category_id": 10045,
						"name": "夹克",
						"parent_id": 10005,
						"image_id": 10035,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10035,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717111920ceed03487.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717111920ceed03487.jpg"
						}
					}
				],
				"image": null
			},
			{
				"category_id": 10006,
				"name": "女装",
				"parent_id": 0,
				"image_id": 0,
				"status": 1,
				"sort": 75,
				"children": [
					{
						"category_id": 10058,
						"name": "牛仔裤",
						"parent_id": 10006,
						"image_id": 10048,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10048,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717131233a76585133.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717131233a76585133.jpg"
						}
					},
					{
						"category_id": 10057,
						"name": "T恤",
						"parent_id": 10006,
						"image_id": 10047,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10047,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717131221305a62112.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717131221305a62112.jpg"
						}
					},
					{
						"category_id": 10056,
						"name": "衬衫",
						"parent_id": 10006,
						"image_id": 10046,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10046,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717131203b2d096600.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717131203b2d096600.jpg"
						}
					},
					{
						"category_id": 10055,
						"name": "连衣裙",
						"parent_id": 10006,
						"image_id": 10045,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10045,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717131147254102370.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717131147254102370.jpg"
						}
					},
					{
						"category_id": 10054,
						"name": "早春新品",
						"parent_id": 10006,
						"image_id": 10044,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10044,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/201807171311135ad417707.jpg",
							"external_url": "https://static.yoshop.xany6.com/201807171311135ad417707.jpg"
						}
					},
					{
						"category_id": 10059,
						"name": "卫衣",
						"parent_id": 10006,
						"image_id": 10049,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10049,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717131244f99b38300.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717131244f99b38300.jpg"
						}
					},
					{
						"category_id": 10060,
						"name": "针织衫",
						"parent_id": 10006,
						"image_id": 10050,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10050,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/201807171313023ada84138.jpg",
							"external_url": "https://static.yoshop.xany6.com/201807171313023ada84138.jpg"
						}
					},
					{
						"category_id": 10062,
						"name": "自营女装",
						"parent_id": 10006,
						"image_id": 10052,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10052,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717131329ec4c16995.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717131329ec4c16995.jpg"
						}
					},
					{
						"category_id": 10061,
						"name": "牛仔外套",
						"parent_id": 10006,
						"image_id": 10051,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10051,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/2018071713131446f0c9984.jpg",
							"external_url": "https://static.yoshop.xany6.com/2018071713131446f0c9984.jpg"
						}
					}
				],
				"image": null
			},
			{
				"category_id": 10007,
				"name": "钟表珠宝",
				"parent_id": 0,
				"image_id": 0,
				"status": 1,
				"sort": 80,
				"children": [
					{
						"category_id": 10074,
						"name": "欧美表",
						"parent_id": 10007,
						"image_id": 10064,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10064,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/201807171327225fbab4337.jpg",
							"external_url": "https://static.yoshop.xany6.com/201807171327225fbab4337.jpg"
						}
					},
					{
						"category_id": 10073,
						"name": "儿童手表",
						"parent_id": 10007,
						"image_id": 10063,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10063,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717132707c4a8f0033.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717132707c4a8f0033.jpg"
						}
					},
					{
						"category_id": 10072,
						"name": "日韩表",
						"parent_id": 10007,
						"image_id": 10062,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10062,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/2018071713265693a4f9387.jpg",
							"external_url": "https://static.yoshop.xany6.com/2018071713265693a4f9387.jpg"
						}
					},
					{
						"category_id": 10071,
						"name": "德表",
						"parent_id": 10007,
						"image_id": 10061,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10061,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717132644d48de9165.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717132644d48de9165.jpg"
						}
					},
					{
						"category_id": 10070,
						"name": "国表",
						"parent_id": 10007,
						"image_id": 10060,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10060,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717132634e4bf75583.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717132634e4bf75583.jpg"
						}
					},
					{
						"category_id": 10069,
						"name": "瑞表 ",
						"parent_id": 10007,
						"image_id": 10059,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10059,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717132624d5fbe7006.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717132624d5fbe7006.jpg"
						}
					}
				],
				"image": null
			},
			{
				"category_id": 10009,
				"name": "箱包手袋",
				"parent_id": 0,
				"image_id": 0,
				"status": 1,
				"sort": 90,
				"children": [
					{
						"category_id": 10079,
						"name": "自营女包",
						"parent_id": 10009,
						"image_id": 10069,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10069,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/201807171332472e5603287.jpg",
							"external_url": "https://static.yoshop.xany6.com/201807171332472e5603287.jpg"
						}
					},
					{
						"category_id": 10078,
						"name": "男包上新",
						"parent_id": 10009,
						"image_id": 10068,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10068,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717133227cfde21313.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717133227cfde21313.jpg"
						}
					},
					{
						"category_id": 10077,
						"name": "男士腰带",
						"parent_id": 10009,
						"image_id": 10067,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10067,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/201807171332128992b6822.jpg",
							"external_url": "https://static.yoshop.xany6.com/201807171332128992b6822.jpg"
						}
					},
					{
						"category_id": 10076,
						"name": "时尚男包",
						"parent_id": 10009,
						"image_id": 10066,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10066,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717133158bf0436318.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717133158bf0436318.jpg"
						}
					},
					{
						"category_id": 10075,
						"name": "拉杆箱",
						"parent_id": 10009,
						"image_id": 10065,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10065,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/20180717133143a45f59273.jpg",
							"external_url": "https://static.yoshop.xany6.com/20180717133143a45f59273.jpg"
						}
					},
					{
						"category_id": 10080,
						"name": "新款双肩包",
						"parent_id": 10009,
						"image_id": 10070,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10070,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/2018071713325709a965823.jpg",
							"external_url": "https://static.yoshop.xany6.com/2018071713325709a965823.jpg"
						}
					}
				],
				"image": null
			},
			{
				"category_id": 10085,
				"name": "居家生活",
				"parent_id": 0,
				"image_id": 0,
				"status": 1,
				"sort": 100,
				"children": [
					{
						"category_id": 10086,
						"name": "抱枕靠垫",
						"parent_id": 10085,
						"image_id": 10373,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10373,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/10001/20210315/c08c05641bd304887abc41b973ab8a70.jpg",
							"external_url": "https://static.yoshop.xany6.com/10001/20210315/c08c05641bd304887abc41b973ab8a70.jpg"
						}
					},
					{
						"category_id": 10087,
						"name": "收纳用品",
						"parent_id": 10085,
						"image_id": 10374,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10374,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/10001/20210315/43d1987d2e2f37e6ff8da985589c4a56.png",
							"external_url": "https://static.yoshop.xany6.com/10001/20210315/43d1987d2e2f37e6ff8da985589c4a56.png"
						}
					}
				],
				"image": null
			},
			{
				"category_id": 10088,
				"name": "运动户外",
				"parent_id": 0,
				"image_id": 0,
				"status": 1,
				"sort": 100,
				"children": [
					{
						"category_id": 10089,
						"name": "运动鞋",
						"parent_id": 10088,
						"image_id": 10375,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10375,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/10001/20210315/9a4e024f14484e8c462fe67d100e10d4.png",
							"external_url": "https://static.yoshop.xany6.com/10001/20210315/9a4e024f14484e8c462fe67d100e10d4.png"
						}
					},
					{
						"category_id": 10090,
						"name": "动感单车",
						"parent_id": 10088,
						"image_id": 10376,
						"status": 1,
						"sort": 100,
						"image": {
							"file_id": 10376,
							"file_type": 10,
							"preview_url": "https://static.yoshop.xany6.com/10001/20210315/23b14499cc583dc1a5073f7ebe4f9c0e.png",
							"external_url": "https://static.yoshop.xany6.com/10001/20210315/23b14499cc583dc1a5073f7ebe4f9c0e.png"
						}
					}
				],
				"image": null
			}
		],
		goodsList: []
	  }
	},
    mounted() {
		this.goodsList = this.tabList[0].children
    },
	computed: {
		isWeixin() {
			const systemInfo = uni.getSystemInfoSync()
			return !['android', 'ios'].includes(systemInfo.platform)
		}
	},
    methods: {
		select(row, index) {
			this.active = index
			this.goodsList = row.children
		}
	}
 }
    
</script>

<style lang="scss" scoped>
	.goods-box{
		height: calc(100% - 50px);
		position: absolute;
		top: 50px;
		width: 100%;
		display: flex;
		background: #fff;
	    .goods-left{
		    width: 220rpx;
		    background: #f8f8f8;
		    color: #444;
			overflow: auto;
			.text{
				font-size: 14px;
				text-align: center;
				padding: 25rpx 0;
				&.active{
					background: #fff;
					color: #1296db;
				}
			}
        }
		.goods-content{
			width: 100%;
			height: 100%;
			overflow: auto;
			.category-list{
				overflow: hidden;
				.category-item{
					float: left;
					width: 33.3%;
					text-align: center;
					margin-bottom: 40rpx;
					.image{
						margin: auto;
						display: block;
						width: 150rpx;
						height: 150rpx;
					}
					.item-name{
						font-size: 14px;
					}
				}
			}
		}
	}
</style>